package wiz.client.activities.playhand;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class PlayHandPlace extends Place {

	private String fGameStateToken;

	public PlayHandPlace(String gameStateToken) {
		if(gameStateToken == null){
			throw new IllegalStateException();
		}
		fGameStateToken = gameStateToken;
	}
	
	
	public static class Tokenizer implements PlaceTokenizer<PlayHandPlace> {
		@Override
		public String getToken(PlayHandPlace place) {
			return place.fGameStateToken;
		}

		@Override
		public PlayHandPlace getPlace(String token) {
			return new PlayHandPlace(token);
		}
	}


	public String getGameStateToken() {
		return fGameStateToken;
	}

}
